From: Jasper St. Pierre Date: Mon, 9 Apr 2012 07:08:07 +0000 (-0300) Subject: app-usage: Remove unused open-window-count attribute X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2~1^2~36 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c3ec813f6f58bb42f07d34af3e48f2f8f5d824f9;p=gnome-shell.git app-usage: Remove unused open-window-count attribute Since this has already been unused and was inaccessible, this shouldn't matter too much. https://bugzilla.gnome.org/show_bug.cgi?id=673767 --- diff --git a/src/shell-app-usage.c b/src/shell-app-usage.c index 88895aa1e..3393a6746 100644 --- a/src/shell-app-usage.c +++ b/src/shell-app-usage.c @@ -90,8 +90,6 @@ struct _ShellAppUsage gboolean currently_idle; gboolean enable_monitoring; - GSList *previously_running; - long watch_start_time; ShellApp *watched_app; @@ -588,8 +586,6 @@ idle_save_application_usage (gpointer data) goto out; if (!write_attribute_string (data_output, "id", id, &error)) goto out; - if (!write_attribute_uint (data_output, "open-window-count", shell_app_get_n_windows (app), &error)) - goto out; if (!write_attribute_double (data_output, "score", usage->score, &error)) goto out; if (!write_attribute_uint (data_output, "last-seen", usage->last_seen, &error)) @@ -661,14 +657,7 @@ shell_app_usage_start_element_handler (GMarkupParseContext *context, for (attribute = attribute_names, value = attribute_values; *attribute; attribute++, value++) { - if (strcmp (*attribute, "open-window-count") == 0) - { - guint count = strtoul (*value, NULL, 10); - if (count > 0) - self->previously_running = g_slist_prepend (self->previously_running, - g_strdup (appid)); - } - else if (strcmp (*attribute, "score") == 0) + if (strcmp (*attribute, "score") == 0) { usage->score = g_ascii_strtod (*value, NULL); }